PUT Customer Account Update

This endpoint will do a customer account update for the given customer account UUID

Path Parameters
  • customer_account_id
    Type: stringFormat: uuid
    required

    Customer Account UUID

Headers
  • Accept
    Type: string
    required

    Accept header

  • Authorization
    Type: string
    required

    Authorization header

  • Content-Type
    Type: string
    required

    Content-Type header

  • API-VERSION
    Type: string
    required

    API version

  • Application
    Type: string
    required

    Application key

  • X-Request-ID
    Type: string
    required

    Unique request identifier

  • X-QB-Enabled
    enum
    required

    Header which if sent with value 'true' will allow usage of the query building feature in response (through the request's query params). It is mandatory for this part of the documentation.

    values
    • true
    • false
  • DLC-Authorization
    Type: string

    DLC Authorization token key (Punchh)

Body
application/json
  • demographics
    Type: array object[] ·
  • email
    Type: stringFormat: email
  • first_name
    Type: string
  • last_name
    Type: string
Responses
  • application/json
  • application/json
  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

Request Example for put/customer-accounts/{customer_account_id}
curl https://api-public-demo.menu.app/api/customer-accounts/f16a8522-662f-4393-a026-0076abea8517 \
  --request PUT \
  --header 'Accept: application/json' \
  --header 'Authorization: ' \
  --header 'Content-Type: application/json' \
  --header 'API-VERSION: ' \
  --header 'Application: ' \
  --header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
  --header 'X-QB-Enabled: true' \
  --header 'DLC-Authorization: ' \
  --data '{
  "first_name": "Ivan",
  "last_name": "Djordjevic",
  "email": "ivan.djordjevic@partech.com",
  "demographics": [
    {
      "demographic_id": "6cf7ea5e-c58e-42f3-9a4a-7e93e67761d9",
      "value": "2000-01-13"
    }
  ]
}'
{
  "status": "OK",
  "code": 200,
  "data": {
    "customer_account": {
      "id": "6b49f310-3f23-11ed-936c-1a67b454859d",
      "type_id": 1,
      "reference_type": "CustomerAccount",
      "first_name": "Ivan",
      "last_name": "Djordjevic",
      "email": "ivan.djordjevic@partech.com",
      "confirmed": true,
      "phone_number": "+381601111111",
      "locale": "en",
      "state": 1,
      "demographics": [
        {
          "demographic_id": "6cf7ea5e-c58e-42f3-9a4a-7e93e67761d9",
          "value": "2000-01-13"
        }
      ],
      "optin_status_email": 3,
      "optin_status_pn": 3,
      "has_pending_email_change": false,
      "has_pending_phone_number_change": false,
      "is_social": false,
      "updated_at": "2023-04-13 06:36:22",
      "created_at": "2023-04-12 13:06:13"
    }
  }
}